<%--
  Created by IntelliJ IDEA.
  User: z5727
  Date: 2022/9/24
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set value="${pageContext.request.contextPath}" var="path"></c:set>
<!doctype html>
<html lang="en" class="pxp-root">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link rel="shortcut icon" href="/static/web/images/favicon.png" type="image/x-icon">
    <link rel="preconnect" href="https://fonts.googleapis.com/">
    <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600;700&display=swap" rel="stylesheet">
    <link href="/static/web/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/web/css/owl.carousel.min.css">
    <link rel="stylesheet" href="/static/web/css/owl.theme.default.min.css">
    <link rel="stylesheet" href="/static/web/css/animate.css">
    <link rel="stylesheet" href="/static/web/css/style.css">

    <title>Jobster - Single company v3</title>
    <style type="text/css">
        .enlargeImg_wrapper {
            display: none;
            position: fixed;
            z-index: 999;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-position: center;
            background-color: rgba(52, 52, 52, 0.8);
            background-size: 45%;
        }
        img:hover {
            cursor: zoom-in;
        }
        .enlargeImg_wrapper:hover {
            cursor: zoom-out;
        }
    </style>
</head>
<body>
<div class="pxp-preloader"><span>Loading...</span></div>

<jsp:include page="/web/personal/inc/indexHead"/>
<section>
    <div class="pxp-container">
        <div class="pxp-single-company-container">
            <div class="row justify-content-center">
                <div class="col-xl-9">
                    <div class="pxp-single-company-hero pxp-cover pxp-boxed" style="background-image: url(/static/uploadImages/${requestScope.company.face});">
                        <div class="pxp-hero-opacity"></div>
                        <div class="pxp-single-company-hero-caption">
                            <div class="pxp-single-company-hero-content d-block text-center">
                                <div class="pxp-single-company-hero-logo d-inline-block head_company_logo" style="background-image: url(/static/uploadImages/${requestScope.company.companyLogo});background-size: 80px 80px;"></div>
                                <div class="pxp-single-company-hero-title ms-0 mt-3">
                                    <h1>${requestScope.company.name}</h1>
                                    <div class="pxp-single-company-hero-location"><span class="fa fa-globe"></span>${requestScope.company.province.provName}  ${requestScope.company.city.cityName} ${requestScope.company.address}</div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row mt-4 mt-lg-5">
                        <div class="col-lg-7 col-xxl-8">
                            <div class="pxp-single-company-content">
                                <h2>关于${requestScope.company.name}公司</h2>
                                <p>${requestScope.company.introduction}</p>

                                <div class="pxp-single-company-gallery mt-3 mt-lg-4">
                                    <div class="row">
                                        <div class="col-xxl-4">
                                            <a href="javascript:void(0)" class="pxp-single-company-gallery-item">
                                                <div class="pxp-single-company-gallery-item-fig pxp-cover enlargeImg" style="background-image: url(/static/uploadImages/${requestScope.companyPics[0].pic});"></div>
                                                <div class="pxp-single-company-gallery-item-caption">公司环境图片1</div>
                                            </a>
                                            <a href="javascript:void(0)" class="pxp-single-company-gallery-item">
                                                <div class="pxp-single-company-gallery-item-fig pxp-cover enlargeImg" style="background-image: url(/static/uploadImages/${requestScope.companyPics[1].pic});"></div>
                                                <div class="pxp-single-company-gallery-item-caption">公司环境图片2</div>
                                            </a>
                                        </div>
                                        <div class="col-xxl-8">
                                            <a href="javascript:void(0)" class="pxp-single-company-gallery-item">
                                                <div class="pxp-single-company-gallery-item-fig pxp-cover enlargeImg" style="background-image: url(/static/uploadImages/${requestScope.companyPics[2].pic});"></div>
                                                <div class="pxp-single-company-gallery-item-caption">公司环境图片3</div>
                                            </a>
                                            <div class="row">
                                                <div class="col-6">
                                                    <a href="javascript:void(0)" class="pxp-single-company-gallery-item">
                                                        <div class="pxp-single-company-gallery-item-fig pxp-cover enlargeImg" style="background-image: url(/static/uploadImages/${requestScope.companyPics[3].pic});"></div>
                                                        <div class="pxp-single-company-gallery-item-caption">公司环境图片4</div>
                                                    </a>
                                                </div>
                                                <div class="col-6">
                                                    <a href="javascript:void(0)" class="pxp-single-company-gallery-item">
                                                        <div class="pxp-single-company-gallery-item-fig pxp-cover enlargeImg" style="background-image: url(/static/uploadImages/${requestScope.companyPics[4].pic});"></div>
                                                        <div class="pxp-single-company-gallery-item-caption">公司环境图片5</div>
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="col-lg-5 col-xxl-4">
                            <div class="pxp-single-company-side-panel mt-5 mt-lg-0">
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">行业</div>
                                    <div class="pxp-single-company-side-info-data">${requestScope.company.positionType.typeName}</div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">公司规模</div>
                                    <div class="pxp-single-company-side-info-data">${requestScope.company.companySize.companySizeInfo}</div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">公司性质</div>
                                    <div class="pxp-single-company-side-info-data">${requestScope.company.companyNature.companyNatureInfo}</div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">成立时间</div>
                                    <div class="pxp-single-company-side-info-data"><fmt:formatDate value="${requestScope.company.enrollTime}" pattern="yyyy-MM-dd"></fmt:formatDate></div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">联系热线</div>
                                    <div class="pxp-single-company-side-info-data">${requestScope.company.phone}</div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">Email</div>
                                    <div class="pxp-single-company-side-info-data">${requestScope.company.email}</div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">详细地址</div>
                                    <div class="pxp-single-company-side-info-data">${requestScope.company.province.provName}  ${requestScope.company.city.cityName} ${requestScope.company.address}</div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-label pxp-text-light">邮编</div>
                                    <div class="pxp-single-company-side-info-data">${requestScope.company.postcode}</div>
                                </div>
                                <div class="mt-4">
                                    <div class="pxp-single-company-side-info-data">
                                        <ul class="list-unstyled pxp-single-company-side-info-social">
                                            <li><a href="#"><span class="fa fa-facebook"></span></a></li>
                                            <li><a href="#"><span class="fa fa-twitter"></span></a></li>
                                            <li><a href="#"><span class="fa fa-instagram"></span></a></li>
                                            <li><a href="#"><span class="fa fa-linkedin"></span></a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>

<%--                            <div class="pxp-single-company-side-panel mt-3 mt-lg-4">--%>
<%--                                <h3>Contact Company</h3>--%>
<%--                                <form class="mt-4">--%>
<%--                                    <div class="mb-3">--%>
<%--                                        <label for="contact-company-name" class="form-label">Name</label>--%>
<%--                                        <input type="text" class="form-control" id="contact-company-name" placeholder="Enter your name">--%>
<%--                                    </div>--%>
<%--                                    <div class="mb-3">--%>
<%--                                        <label for="contact-company-email" class="form-label">Email</label>--%>
<%--                                        <input type="text" class="form-control" id="contact-company-email" placeholder="Enter your email address">--%>
<%--                                    </div>--%>
<%--                                    <div class="mb-3">--%>
<%--                                        <label for="contact-company-message" class="form-label">Message</label>--%>
<%--                                        <textarea class="form-control" id="contact-company-message" placeholder="Type your message here..."></textarea>--%>
<%--                                    </div>--%>
<%--                                    <a href="#" class="btn rounded-pill pxp-section-cta d-block">Send Message</a>--%>
<%--                                </form>--%>
<%--                            </div>--%>
                        </div>
                    </div>

                    <div class="mt-100">
                        <div class="pxp-container">
                            <h2 class="pxp-subsection-h2">此公司的招聘岗位</h2>
                            <p class="pxp-text-light">${requestScope.company.name}发布的职位</p>

                            <div class="row mt-3 mt-md-4 pxp-animate-in pxp-animate-in-top pxp-in company_position_detail">
                            </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<div class="imgBox"></div>
<jsp:include page="/web/personal/inc/indexFoot"></jsp:include>

<script src="/static/web/js/jquery-3.4.1.min.js"></script>
<script src="/static/web/js/bootstrap.bundle.min.js"></script>
<script src="/static/web/js/owl.carousel.min.js"></script>
<script src="/static/web/js/nav.js"></script>
<script src="/static/web/js/main.js"></script>
<script type="text/javascript">
    $(function()
    {
        initData(1);
        $(".company_position_detail").on("click",".page-link",function (){
            let pageNum = $(this).html();
            initData(pageNum);
        })
        enlargeImg();
    })
    //关闭并移除图层
    function closeImg() {
        $('.enlargeImg_wrapper').fadeOut(200).remove();
    }
    //查看大图
    function enlargeImg() {
        $(".enlargeImg").click(function () {
            $('.imgBox').html("<div  class='enlargeImg_wrapper'></div>");
            var imgSrc = $(this).css('background-image');
            $(".enlargeImg_wrapper").css("background-image", imgSrc);
            $('.enlargeImg_wrapper').fadeIn(200);
        })
        $('.imgBox').on('click', '.enlargeImg_wrapper', function () {
            $('.enlargeImg_wrapper').fadeOut(200).remove();
        })
    }
    function initData(pageNum)
    {
        let companyId = "${requestScope.company.id}";
        let data={pageNum:pageNum,companyId:companyId};
        $.get("/web/personal/personalCompanyDetailData",
        data,
        function(data)
        {
            $(".company_position_detail").html(data);
            $(".company_position_detail").find(".company_logo").each(function (){
                $(this).css("background-image","url(/static/uploadImages/${requestScope.company.companyLogo})");
            })
        })
    }
</script>
</body>
</html>
